﻿using Autofac;
using Autofac.Configuration;
using System;
using System.Windows.Forms;
using MyEncrypt;
namespace MyLock
{
    static class Program
    {

       // private static IContainer container;

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
           // InitContainer();
           // IEncrypter encrypter = container.Resolve<IEncrypter>();
           // Decrypter decrypter = container.Resolve<Decrypter>();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1(new MyEncrypter(),new MyDecrypter()));
        }

/*
        static void InitContainer()
        {
            var builder = new ContainerBuilder();
            //读配置文件
            var reader = new ConfigurationSettingsReader("autofac");
            builder.RegisterModule(reader);
            //根据配置文件构造容器
            container = builder.Build();

        }
        */
    }
}
